Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize DECREF (part 1). #3203

Merged
merged 4 commits into from
Nov 15, 2024
Merged

Modernize DECREF (part 1). #3203

merged 4 commits into from
Nov 15, 2024

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Nov 13, 2024

Modernize several occurrences of Py_DECREF by using nanobind. Using nanobind ensures correct reference counting not only on C-style error paths, but also for C++-style error paths (exceptions).

Copy link

sonarcloud bot commented Nov 13, 2024

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 63.15789% with 7 lines in your changes missing coverage. Please review.

Project coverage is 67.07%. Comparing base (c18450a) to head (6ebacc6).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
src/nrnpython/nrnpy_nrn.cpp 63.15% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3203      +/-   ##
==========================================
- Coverage   67.07%   67.07%   -0.01%     
==========================================
  Files         569      569              
  Lines      111206   111205       -1     
==========================================
- Hits        74592    74591       -1     
  Misses      36614    36614              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

✔️ 6ebacc6 -> Azure artifacts URL

@1uc 1uc marked this pull request as ready for review November 13, 2024 18:30
@1uc 1uc changed the title Modernize DECREF. Modernize DECREF (part 1). Nov 14, 2024
Copy link
Collaborator

@mgeplf mgeplf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@1uc 1uc merged commit 18b1c14 into master Nov 15, 2024
34 checks passed
@1uc 1uc deleted the 1uc/modernize-decref branch November 15, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants